package com.piggy.logi.sys.api.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 更新支付信息请求参数
 *
 * @author fengxy
 * @date 2024/01/15 14:59
 **/
@Data
public class PayInfoBo {

    @NotBlank(message = "众油平台唯一订单id不能为空")
    @ApiModelProperty(value = "众油平台唯一订单id（提货单号）")
    private String pickupOrderNo;

    @NotNull(message = "支付金额不能为空")
    @ApiModelProperty("支付金额")
    private BigDecimal payAmount;

    @NotNull(message = "支付时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "支付时间")
    private Date payTime;

}
